package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.Material;
import com.ecoolex.chinadutyfree.retailer.entity.MaterialExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface MaterialMapper {
    long countByExample(MaterialExample example);

    int deleteByExample(MaterialExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Material record);

    int insertSelective(@Param("record") Material record, @Param("selective") Material.Column ... selective);

    Material selectOneByExample(MaterialExample example);

    Material selectOneByExampleWithBLOBs(MaterialExample example);

    List<Material> selectByExampleWithBLOBs(MaterialExample example);

    List<Material> selectByExample(MaterialExample example);

    Material selectByPrimaryKey(Integer id);

    Material selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") Material record, @Param("example") MaterialExample example, @Param("selective") Material.Column ... selective);

    int updateByExampleWithBLOBs(@Param("record") Material record, @Param("example") MaterialExample example);

    int updateByExample(@Param("record") Material record, @Param("example") MaterialExample example);

    int updateByPrimaryKeySelective(@Param("record") Material record, @Param("selective") Material.Column ... selective);

    int updateByPrimaryKeyWithBLOBs(Material record);

    int updateByPrimaryKey(Material record);

    int batchInsert(@Param("list") List<Material> list);

    int batchInsertSelective(@Param("list") List<Material> list, @Param("selective") Material.Column ... selective);

    int logicalDeleteByExample(@Param("example") MaterialExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}